package app.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("workerPage")
public class WorkerPageController {
	//用户主页
    @RequestMapping("/index")
    public String index(){
    	return "worker/worker";
    }
	/*
	 * 报修管理
	 * */
    //报修记录
    @RequestMapping("/fixOrderList")
    public String fixOrderList(){
    	return "worker/fixOrderList";
    }
    
    //报修信息
    @RequestMapping("/fixOrderInfo/{id}")
    public String fixOrderInfo(@PathVariable(value="id")int fixOrderId,Model model){
    	model.addAttribute("fixOrderId",fixOrderId);
    	return "worker/fixOrderInfo";
    }
    
    
    //信息列表
    @RequestMapping("/messageList")
    public String messageList(){
    	return "worker/messageList";
    }
}
